/*
 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION!

import { int32, int64, float32 } from "@koalaui/common"
import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop"
import { NodeAttach, remember } from "@koalaui/runtime"
import { Axis } from "./ArkEnumsInterfaces"
import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from "./ArkUnitsInterfaces"
import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces"
import { LinearGradient } from "./ArkLinearGradientMaterialized"
import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations"
export enum SliderStyle {
    OUT_SET = 0,
    OutSet = 0,
    IN_SET = 1,
    InSet = 1,
    NONE = 2
}
export enum SliderChangeMode {
    BEGIN = 0,
    Begin = 0,
    MOVING = 1,
    Moving = 1,
    END = 2,
    End = 2,
    CLICK = 3,
    Click = 3
}
export enum SliderInteraction {
    SLIDE_AND_CLICK = 0,
    SLIDE_ONLY = 1,
    SLIDE_AND_CLICK_UP = 2
}
export interface SlideRange {
    from?: number;
    to?: number;
}
export interface SliderOptions {
    value?: number;
    min?: number;
    max?: number;
    step?: number;
    style?: SliderStyle;
    direction?: Axis;
    reverse?: boolean;
}
export enum SliderBlockType {
    DEFAULT = 0,
    IMAGE = 1,
    SHAPE = 2
}
export interface SliderBlockStyle {
    type: SliderBlockType;
    image?: ResourceStr;
    shape?: string;
}
export type SliderTriggerChangeCallback = (value: number, mode: SliderChangeMode) => void;
export interface SliderConfiguration extends CommonConfiguration<SliderConfiguration> {
    value: number;
    min: number;
    max: number;
    step: number;
    triggerChange: SliderTriggerChangeCallback;
}
export type SliderInterface = (options?: SliderOptions) => SliderAttribute;
export interface SliderAttribute extends CommonMethod<SliderAttribute> {
    blockColor: ResourceColor;
    trackColor: ResourceColor | LinearGradient;
    selectedColor: ResourceColor;
    minLabel: string;
    maxLabel: string;
    showSteps: boolean;
    trackThickness: Length;
    onChange: ((value: number,mode: SliderChangeMode) => void);
    blockBorderColor: ResourceColor;
    blockBorderWidth: Length;
    stepColor: ResourceColor;
    trackBorderRadius: Length;
    selectedBorderRadius: Dimension;
    blockSize: SizeOptions;
    blockStyle: SliderBlockStyle;
    stepSize: Length;
    sliderInteractionMode: SliderInteraction;
    minResponsiveDistance: number;
    contentModifier: ContentModifier<SliderConfiguration>;
    slideRange: SlideRange;
}
